<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{$productTitle}-出行日期</title>
  <link rel="stylesheet" href="__PUBLIC__/css/style.css">
  <!-- <link rel="stylesheet" href="__PUBLIC__/css/font.css" /> -->
  <script type="text/javascript" src="__PUBLIC__/js/jquery.min.js"></script>
  <!-- // <script type="text/javascript" src="__PUBLIC__/js/common.js"></script> -->
  <script type="text/javascript" src="/Public/js/jquery.form.min.js"></script>
  <script type="text/javascript" src="__PUBLIC__/plugin/layer/layer.js"></script>

</head>
<body style="min-width: 100%;">
<style type="text/css">
#picture_show {width: 905px;height: 400px;overflow: scroll;}
.picture_item {margin:5px;  padding: 5px 5px 40px ; width: 200px; height:180px; cursor:pointer;}
.picture_item .title {padding-left:6px;overflow:hidden; width:200px;}
.picture_item .address {padding-left:6px;overflow:hidden; width:200px; height:52px;}
.page {border-bottom: 0px;}
</style>
<script type="text/javascript">
$(function () {

    $('#button-submit').click(function () {
    $('#form').ajaxSubmit({
      dataType:  'json',
      success:function (data) {
        if(data.valid == true)
        {
          layer.msg(data.state);
          window.parent.document.location.reload();
        }
        else
        {
          layer.msg(data.state);
        }
      }
    })
  })

});
</script>
<div class="form">
  <form method='post' id="form" action="{:U(MODULE_NAME. '/Webproduct/hotelInfoPost',array('id'=>$id,'productID'=>$productID))}">
    <dl>
      <dt> 线路名称：</dt>
      <dd><input type="text" class="inp_large" name="productTitle" value="{$product.productTitle}" readonly /></dd>
    </dl>
    <dl>
      <dt> 酒店标题：</dt>
      <dd><input type="text" name="hotelTitle" class="inp_default" value="<if condition="$hotel['title']">{$hotel.title}<else />全程</if>"/>例： 全程 或 第1晚 或 第3、4晚 </dd>
    </dl>
    <dl>
       <dt>供应商：</dt>
       <dd>
       <select name="supplierID">
         <option value="">--请选择--</option>
         <volist name="supplier" id="supplier">
         <option value="{$supplier.id}" <if condition="$hotel['supplierID'] eq $supplier['id']">selected</if> >{$supplier.name}</option>
         </volist>
       </select>
       </dd>
    </dl>
    <dl>
      <dt> 单房差：</dt>
      <dd><input type="text" name="spreadHotel" class="inp_default" value="<if condition="$hotel['spreadHotel']">{$hotel.spreadHotel}<else />0</if>"/>
    </dd>
    </dl>
    <dl>
      <dt> 升级酒店差价：</dt>
      <dd><input type="text" name="updateHotel" class="inp_default" value="<if condition="$hotel['updateHotel']">{$hotel.updateHotel}<else />0</if>"/>
    </dd>
    </dl>
    <dl>
      <dt> 选择酒店：</dt>
      <dd>
        <div id="picture_show">
          <foreach name='hotelArr' item='hotelArr'>
            <div class="picture_item">
              <label for="hotel{$hotelArr.id}">
              <div class="title">{$hotelArr.name}</div>
              <img width="200" height="112" src="{$website_url}{$hotelArr.litpic}">
              <div class="address">{$hotelArr.address}</div>
              </label>
              <input type="radio" id="hotel{$hotelArr.id}" name="hotelID" value="{$hotelArr.id}" style="margin-left: 88px;" <if condition="$hotel['hotelID'] eq $hotelArr['id']">checked</if> />
            </div>
          </foreach>
        </div>
      </dd>
    </dl>
    <dl>
      <dt> 排序：</dt>
      <dd><input type="text" name="sort" class="inp_small" value="<if condition="$hotel['sort']">{$hotel.sort}<else />255</if>"/>
    </dd>
    </dl>
    <dl>
      <dt> </dt>
      <dd><input type="button" class="button-green" id="button-submit" value="保 存"></dd>
    </dl>
  </form>
</div>
</body>
</html>